#include <stdio.h> 

union node
{
	int a;
	char b;
};

int test_endian(void)
{
	union node u;
	u.a = 0x12345678;
	//u.a = 0x12345699;
	if (u.b == 0x78)
	{
		printf("little endian\n"); 
	}
	else
	{
		printf("big endian\n"); 
	}

	return 0;
}

int main(int argc , char *argv[]) 
{
	test_endian();
	return 0;
}
